package com.saikuo.service.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Created by chenzhuo on 16/7/18.
 */
@Aspect
@Component
public class LogAspect {
    private static final Logger log= LoggerFactory.getLogger(LogAspect.class);
    @Around("execution(* com.saikuo.service.controller.*.*(..))")
    public Object requestLog(ProceedingJoinPoint pjp) throws Throwable {
        log.info("ddddddddd");
        return pjp.proceed();
    }
}
